package com.example.springboot_quick2.controller;

import com.example.springboot_quick2.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/csu")
public class UserController2 {
    @PostMapping("/zdh")
    public String getUser(User user){
        return user.toString();
    }
}
